package com.fx.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fx.commonuntils.ReturnMessage;
import com.fx.eduservice.entity.vo.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fx.eduservice.request.CourseFrontVo;
import com.fx.eduservice.request.CourseInfoVo;
import com.fx.eduservice.response.curstom.CourseWebVo;
import com.fx.eduservice.response.curstom.CustrmResponse;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-11-07
 */
public interface EduCourseService extends IService<EduCourse> {

    ReturnMessage<Object> addCourseInfo(CourseInfoVo courseInfoVo);

    ReturnMessage<Object> getCourseInfoById(String id);

    ReturnMessage<Object> updataCourseInfo(CourseInfoVo courseInfoVo);

    ReturnMessage<CustrmResponse> quaryCustormPublic(String id);

    Map<String, Object> getCourseFrontList(Page<EduCourse> pageParam, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
